package com.book.service.Impl;

import com.book.mapper.BookMapper;
import com.book.service.BookService;
import com.commons.entity.ResultFul;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BookServiceImpl implements BookService {
    @Resource
    private BookMapper bookMapper;
    @Override
    public ResultFul findByBid(Integer bid) {
        return ResultFul.success(bookMapper.findByBid(bid),"查询书籍信息成功！");
    }
}
